package com.wang.service;

import com.wang.dao.UserMapper;
import com.wang.pojo.User;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User selectByName(String username) {
        return userMapper.selectByName(username);
    }

    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }
}
